module StarFrame
  class Sprite
    class Collision
      class Dot < Collision
        attr_reader :x, :y
        
        def initialize target, method_name, x, y
          @x, @y = x, y
          super
        end
        
        def collide? other
          case other
          when Dot
            position == other.position
          else
            super
          end
        end
      end
    end
  end
end
